export const widgetFunnel = {
    code: 'widget-funnel',
    type: 'funnel',
    label: '漏斗图',
    icon: 'heat-map',
    preview: require('./preview/widget-funnel.png'),
    options: {
      // 配置
      setup: [
        {
          type: 'a-input-text',
          label: '图层名称',
          name: 'layerName',
          required: false,
          placeholder: '',
          value: '漏斗图',
        },
        {
          type: 'vue-color',
          label: '背景颜色',
          name: 'background',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'a-divider',
          label: '文字设置'
        },
        {
          type: 'a-switch',
          label: '显示',
          name: 'isShow',
          require: false,
          placeholder: '',
          value: true,
        },
        {
          type: 'a-input-number',
          label: '字体大小',
          name: 'fontSize',
          require: false,
          placeholder: '',
          value: 12,
        },
        {
          type: 'vue-color',
          label: '字体颜色',
          name: 'color',
          require: false,
          placeholder: '',
          value: '#fff',
        },
        {
          type: 'a-select',
          label: '字体粗细',
          name: 'fontWeight',
          require: false,
          placeholder: '',
          selectOptions: [
            {code: 'normal', name: '正常'},
            {code: 'bold', name: '粗体'},
            {code: 'bolder', name: '特粗体'},
            {code: 'lighter', name: '细体'}
          ],
          value: 'normal'
        },
        {
          type: 'a-switch',
          label: '反转',
          name: 'reversal',
          require: false,
          placeholder: '',
          value: 0
        },
        {
          type: 'a-divider',
          label: '标题设置'
        },
        {
          type: 'a-switch',
          label: '标题',
          name: 'isNoTitle',
          required: false,
          placeholder: '',
          value: true
        },
        {
          type: 'a-input-text',
          label: '标题',
          name: 'titleText',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'vue-color',
          label: '字体颜色',
          name: 'textColor',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'a-select',
          label: '字体粗细',
          name: 'textFontWeight',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'normal', name: '正常'},
            {code: 'bold', name: '粗体'},
            {code: 'bolder', name: '特粗体'},
            {code: 'lighter', name: '细体'}
          ],
          value: 'normal'
        },
        {
          type: 'a-input-number',
          label: '字体大小',
          name: 'textFontSize',
          required: false,
          placeholder: '',
          value: 12
        },
        {
          type: 'a-select',
          label: '字体位置',
          name: 'textAlign',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'center', name: '居中'},
            {code: 'left', name: '左对齐'},
            {code: 'right', name: '右对齐'},
          ],
          value: 'left'
        },
        {
          type: 'a-input-text',
          label: '副标题',
          name: 'subText',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'vue-color',
          label: '字体颜色',
          name: 'subTextColor',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'a-select',
          label: '字体粗细',
          name: 'subTextFontWeight',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'normal', name: '正常'},
            {code: 'bold', name: '粗体'},
            {code: 'bolder', name: '特粗体'},
            {code: 'lighter', name: '细体'}
          ],
          value: 'normal'
        },
        {
          type: 'a-input-number',
          label: '字体大小',
          name: 'subTextFontSize',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'a-divider',
          label: '提示语设置'
        },
        {
          type: 'a-input-number',
          label: '字体大小',
          name: 'fontSize',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'vue-color',
          label: '网格线颜色',
          name: 'lineColor',
          required: false,
          placeholder: '',
          value: ''
        },
        {
          type: 'a-divider',
          label: '图例操作'
        },
        {
          type: 'a-switch',
          label: '图例',
          name: 'isShowLegend',
          required: false,
          placeholder: '',
          value: true,
        },
        {
          type: 'vue-color',
          label: '字体颜色',
          name: 'lengedColor',
          required: false,
          placeholder: '',
          value: '#fff',
        },
        {
          type: 'a-input-number',
          label: '字体大小',
          name: 'lengedFontSize',
          required: false,
          placeholder: '',
          value: 16,
        },
        {
          type: 'a-input-number',
          label: '图例宽度',
          name: 'lengedWidth',
          required: false,
          placeholder: '',
          value: 10,
        },
        {
          type: 'a-select',
          label: '横向位置',
          name: 'lateralPosition',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'left', name: '左对齐'},
            {code: 'right', name: '右对齐'},
          ],
          value: ''
        },
        {
          type: 'a-select',
          label: '纵向位置',
          name: 'longitudinalPosition',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'top', name: '顶部'},
            {code: 'bottom', name: '底部'},
          ],
          value: ''
        },
        {
          type: 'a-select',
          label: '布局前置',
          name: 'layoutFront',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'vertical', name: '竖排'},
            {code: 'horizontal', name: '横排'},
          ],
          value: ''
        },
        {
          type: 'a-divider',
          label: '自定义配色'
        },
        {
          type: 'custom-color',
          label: '配色',
          name: 'customColor',
          required: false,
					limit: -1,
          value: [{color: '#ff7f50'}, {color: '#87cefa'}, {color: '#da70d6'}, {color: '#32cd32'}, {color: '#6495ed'}],
        }
      ],
      // 数据
      data: [
        {
          type: 'a-radio-group',
          label: '数据类型',
          name: 'dataType',
          require: false,
          placeholder: '',
          selectValue: true,
          selectOptions: [
            {
              code: 'staticData',
              name: '静态数据',
            },
            {
              code: 'dynamicData',
              name: '动态数据',
            },
          ],
          value: 'staticData',
        },
        {
          type: 'a-input-number',
          label: '刷新时间(毫秒)',
          name: 'refreshTime',
          relactiveDom: 'dataType',
          relactiveDomValue: 'dynamicData',
          value: 5000
        },
        {
          type: 'a-button',
          label: '静态数据',
          name: 'staticData',
          required: false,
          placeholder: '',
          relactiveDom: 'dataType',
          relactiveDomValue: 'staticData',
          value: [{"value": 60,"name": "访问"},{"value": 40, "name": "咨询"},{"value": 20, "name": "订单"},{"value": 80,"name":"点击"},{"value":100,"name":"展现"}],
        },
        {
          type: 'a-dict-select-tag',
          label: '动态数据',
          name: 'dynamicData',
          required: false,
          placeholder: '',
          relactiveDom: 'dataType',
          relactiveDomValue: 'dynamicData',
          dictKey: 'gaea_report_data_set,dsname,id',
          value: '',
        },
      ],
      // 坐标
      position: [
        {
          type: 'a-input-number',
          label: '横坐标',
          name: 'left',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '纵坐标',
          name: 'top',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '深度',
          name: 'zIndex',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '宽度',
          name: 'width',
          required: false,
          placeholder: '容器宽度',
          value: 600,
        },
        {
          type: 'a-input-number',
          label: '高度',
          name: 'height',
          required: false,
          placeholder: '容器高度',
          value: 300
        }
      ],
    }
  }
